<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateExamineFlowsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('examine_flow', function (Blueprint $table) {
            $table->bigIncrements('id');
            $table->string('name')->comment('审批流名称');
            $table->string('types')->comment('关联对象');
            $table->string('remark')->comment('流程说明')->nullable();
            $table->integer('create_user')->comment('创建人ID');
            $table->integer('status')->comment('状态：1 启用 0 禁用')->default(1);
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('examine_flows');
    }
}
